Technical Q&A HW65
What numeric base is the default for the Open Firmware user interface?


Q: What numeric base is the default for the Open Firmware user interface?

A: It is hex. Try these Forth words at the Open Firmware user interface.

0> 10 dup cr .d .

The results will be:
16 10 ok
0>

You entered hex 10, then duplicated it. You then output the top of the stack in decimal (the .d word) followed by outputting the top item on the stack in the default base, which is hex.

[Oct 11 1999]


Developer Documentation | Technical Notes | Development Kits | Sample Code